package barinadroid.game;

import org.andengine.engine.handler.IUpdateHandler;

public abstract class Behavior
{
	private GameEntity entity;
	private IUpdateHandler updateHandler;

	protected Behavior(GameEntity entity)
	{
		this.entity = entity;
	}

	protected void registerUpdateHandler(IUpdateHandler updateHandler)
	{
		this.entity.registerUpdateHandler(this.updateHandler = updateHandler);
	}

	protected GameEntity getEntity()
	{
		return this.entity;
	}

	protected IUpdateHandler getUpdateHandler()
	{
		return this.updateHandler;
	}
}